package com.wit.WEB.service.impl;

import com.wit.WEB.entity.Result;
import com.wit.WEB.mapper.ResultMapper;
import com.wit.WEB.service.ResultService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @program: java-web-group
 * @description: 实现
 * @author: KingTeng
 * @create: 2022-03-09 19:18
 **/
@Service
public class ResultServiceimpl implements ResultService {
    private ResultMapper resultMapper;
    @Autowired
    private void setResultMapper(ResultMapper resultMapper){this.resultMapper=resultMapper;};
    @Override
    public Result selectByOid(String oid) {
        return resultMapper.selectByOid(oid);
    }

    @Override
    public int insertResult(Result result) {
        return resultMapper.insertSelective(result);
    }
}
